Skip to main content

iphoneSetDoNotBackupFile

Type

command

Summary

Sets the "do not backup" flag for the given file.

Syntax

iphoneSetDoNotBackupFile <filename> [, <doNotBackup>]

Description

Use the iphoneSetDoNotBackupFile command to set a flag specifying whether a file should be backed up by iOS, or not.

The iphoneSetDoNotBackupFile command sets a flag specifying whenere a file should be backed up by iOS, or not.

If the doNotBackup parameter is true the file will not be considered for backup to the Cloud. If false the file will be treated normally. If the doNotBackup parameter is not given then the value of the flag will be set to true by default.

Parameters

NameTypeDescription

filename

The fulle path file to flag

doNotBackup

boolean

A boolean value specifying if the file should be backed up

Examples

iphoneSetDoNotBackupFile myFile, true
iphoneSetDoNotBackupFile specialFolderPath("documents") & "/appointments.txt", false

command: iphoneSetFileDataProtection

function: iphoneFileDataProtection, iphoneDoNotBackupFile

message: protectedDataWillBecomeUnavailable, protectedDataDidBecomeAvailable

Compatibility and Support

Introduced

LiveCode 5.5.1

OS

ios

Platforms

mobile

Thank you for your feedback!

Was this page helpful?